﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using HWmanagementDB;

namespace HWmanagementServer
{
    public class HomeworkMgr
    {
        public int id;
        public int courseid;
        public string userid;
        public int fileid;
        public string title;
        public string shortDesc;
        public DateTime deadline;

        //returns a specific homework
        public static HOMEWORK GetHomeworkByID(int id)
        {
            return null;
        }

        //returns homeworks for a course
        public static ArrayList GetHomeworksByCourse(int id)
        {
            return null;
        }

        //returns the result of a homework
        public RESULT getResult() 
        {
            //query the db for a result with the homework id of the instance
            //if the query returns 0 results return null
            return null;
        }
    }
}
